﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 数据库常用操作封装
{
    public class Point2d
    {
        private double x;
        private double y;   
        public static Point2d Origin => new Point2d(0.0,0.0);
        public double X
        {
            get
            {
                return x;
            }

            set
            {
                x = value;
            }
        }
        public double Y
        {
            get
            {
                return y;
            }

            set
            {
                y = value;
            }
        }
        public Point2d(double x, double y)
        {
            this.x = x;
            this.y = y;
        }
        public override string ToString()
        {
            return X + "," + Y;
        }
    }
}
